package xyz.fping.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import xyz.fping.entities.CommonResult;
import xyz.fping.entities.Payment;

/**
 * PaymentFeignService
 *
 * @author fping
 * @date 2020/11/7 15:16
 */
@Component
@FeignClient("PAYMENT-SERVICE")
public interface PaymentFeignService {
    /**
     * getPaymentById
     *
     * @param id
     * @return
     */
    @GetMapping(value = "/payment/get/{id}")
    CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);
}
